/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.taobao.service.TaobaoService
   Module Description   :

   Date Created      : 2010/12/14
   Original Author   : jeffma
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.taobao.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.taobao.api.domain.Item;
import com.yaodian100.ec.member.entity.Member;
import com.yaodian100.ec.order.entity.Orders;
import com.yaodian100.ec.product.entity.Product;
import com.yaodian100.ec.shelf.entity.Shelf;

/**
 * @author jeffma
 * 
 */
public interface TaobaoService {

	public boolean isValid(String queryString, String appKey);

	public boolean isValid(String queryString);

	public Map<String, String> getParameters(String topAppkey, String topParameters, String topSession, String topSign);

	public String itemAdd(Product product, long qty, Shelf shelf);

	public Item itemGet(Long numIid);

	public boolean itemUpdate(Product product, long qty, Shelf shelf);

	public boolean itemDelete(String productId);

	public String itemsCustomGet(String productId);

	public Map<String, String> itemsGet(long page);

	public Date timeGet();

	public Member usersGet(String loginId);

	public long tradesSoldIncrementGet(Date start, Date end, String status);

	public List<Orders> getTrades(Date start, Date end, String status, int page);

	public Orders getTrade(String tid);

	public boolean rebuildCategoryMenu();

	public List<Map<String, Object>> getPublishProduct(String percentage, int minSpecInv);

	public String buildFeedHead(String templateName, Map<String, String> operation);

	public String buildFeedCats(Date feedModifyDate);

	public String buildFeedItem(Map<String, Object> pid, Date feedModifyDate);
}
